//
//  UIView+Extensions.h
//  YJJ0
//
//  Created by dadaxueche on 16/7/12.
//  Copyright © 2016年 王—wagn. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Extensions)

@property (assign, nonatomic) CGFloat x;

@property (assign, nonatomic) CGFloat y;

@property (assign, nonatomic) CGFloat width;

@property (assign, nonatomic) CGFloat height;

@property (assign, nonatomic) CGFloat centerX;

@property (assign, nonatomic) CGFloat centerY;

@property (assign, nonatomic) CGSize size;

@property (assign, nonatomic) CGPoint origin;

+ (void)makeSuitableLabel:(UILabel *)label text:(NSString *)text font:(UIFont *)font color:(UIColor *)color;


/**
 * For KVO
 */
- (void)registerForKVO;

- (void)unregisterFromKVO;

- (NSArray *)observableKeypaths;

- (void)updateUIForKeypath:(NSString *)keyPath;
@end
